package lxt.service;

import java.util.List;

import lxt.entity.CostPetrol;
/**
 * 加油管理service
 * @author Lit
 *
 */
public interface CostPetrolService {
	/**
	 * 加载加油信息 
	 * @return
	 */
	public List<CostPetrol> loadCostPetrol(String truckId,String driverId,int offset, int length)throws Exception;
	/**
	 * 添加加油
	 */
	public boolean addCostPetrol(CostPetrol costPetrol)throws Exception;
	/**
	 * 根据id查找加油
	 */
	public CostPetrol loadCostPetrolById(String id)throws Exception;
	/**
	 * 修改加油
	 */
	public boolean updateCostPetrol(CostPetrol costPetrol)throws Exception;
	/**
	 * 删除加油
	 */
	public boolean deleteCostPetrol(String id)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllCostPetrolCount(String truckId,String driverId)throws Exception;
}
